package com.cn.xiaonuo.slbfinances.slpabank.controller;

import com.cn.xiaonuo.common.entity.BusinessMessage;
import com.cn.xiaonuo.slbfinances.slpabank.entity.SlPaDzOrder;
import com.cn.xiaonuo.slbfinances.slpabank.service.ICmPaDzOrderService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class PADZFileController {

    @Resource
    private ICmPaDzOrderService cmPaDzOrderService;

    @ApiOperation(value = "平安银行--本地分账信息", notes = "平安银行--本地分账信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "shoppaymentid", value = "店铺付款id(Integer)"),
            @ApiImplicitParam(name = "paychanneltranseqno", value = "付款渠道交易序号"),
            @ApiImplicitParam(name = "pageNo", value = "页数", required = true),
            @ApiImplicitParam(name = "pageSize", value = "长度", required = true)
    })
    @RequestMapping(value = "api/padzfile/querySlPaFzOrderList", method = RequestMethod.POST)
    public BusinessMessage querySlPaFzOrderList(Integer pageNo,
                                                Integer pageSize,
                                                String paychanneltranseqno,
                                                String shoppaymentid) {
        return cmPaDzOrderService.querySlPaFzOrderList(pageNo, pageSize, paychanneltranseqno, shoppaymentid);
    }

    @ApiOperation(value = "平安银行--本地对账信息", notes = "平安银行--本地对账信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "pageNo", value = "页数", required = true),
            @ApiImplicitParam(name = "pageSize", value = "长度", required = true)
    })
    @RequestMapping(value = "/api/padzfile/querySlDzList", method = RequestMethod.POST)
    public BusinessMessage querySlDzList(Integer pageNo, Integer pageSize, SlPaDzOrder slPaDzOrder) {
        return cmPaDzOrderService.querySlDzList(pageNo,pageSize,slPaDzOrder);
    }
}